package cn.zjh.base.constants;
/**
* @Description: 公共常量类
* @Author: Mr.Zhang
* @Version: 1.0
* @Date:  2022/7/6 15:36
*/

public class BaseConstants {

    /**
    * @Title:
    * @Description: 网建短信通
    * @Author: Mr.Zhang
    * @Version: 1.0
    * @Date:  2022/7/6 15:38
    * @Parameters:
    * @Return
    */
    public class SmsConstant{

        //ctrl + shift + u 大小写切换

        //用户名
        public static final  String  UID = "zhangjihui";

        //密钥
        public static final  String  KEY = "d41d8cd98f00b204e980";

    }


    /**
    * @Title:
    * @Description: 验证code常量类
    * @Author: Mr.Zhang
    * @Version: 1.0
    * @Date:  2022/7/6 16:22
    * @Parameters:
    * @Return
    */
    public class VerifyCodeConstant{

        //ctrl + shift + u 大小写切换

        //拼接手机号的业务键/注册
        public static final  String  BUSINESS_REGISTER_PREFIX = "register:";


        //拼接手机号的业务键/登录绑定
        public static final  String  BUSINESS_BINDER_PREFIX = "binder:";


    }


    /**
    * @Title:
    * @Description: 微信扫码登录相关
    * @Author: Mr.Zhang
    * @Version: 1.0
    * @Date:  2022/7/10 18:44
    * @Parameters:
    * @Return
    */
    public class WeCharConstant{

        //ctrl + shift + u 大小写切换

        //APPID值
        public static final  String  APPID = "wxd853562a0548a7d0";

        //SECRET值
        public static final  String  SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

        //官网上复制，请求以下链接获取access_token：
        public static final  String  TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

    }


}
